package cn.supermaster.management.web.controller.system;

import cn.supermaster.management.web.service.system.ISLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.web.controller.system
 * @ClassName: SystemLoginController
 * @Description: [登录验证]
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/2/19 22:54
 * @Version: V1.0
 * @Copyright: 2021 www.super-bytecode.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Controller
public class SystemLoginController {
    @Autowired
    private ISLoginService loginService;

    @GetMapping("/login")
    public String skipLoginHtml(HttpServletRequest request, HttpServletResponse response) {
        return loginService.skipLoginHtml(request, response);
    }

    @GetMapping("/unauth")
    public String skipUnauthHtml() {
        return loginService.skipUnauthHtml();
    }
}